import request from '../utils/request';

const moduleUrl = '/record';

const record = {
    //上传血常规数据
    uploadBloodRoutineIndicators(data){
        return request.post(`${moduleUrl}/uploadBloodRoutineIndicators`, data);
    },
    uploadBloodSmearImages(data){
        return request.upload(`${moduleUrl}/uploadBloodSmearImages`, data);
    },
    //保存记录
    saveRecord(data){
        return request.post(`${moduleUrl}/saveRecord`, data);
    },
    //获取记录
    getRecordHistory(data){
        return request.get(`${moduleUrl}/getRecordHistory`, data);
    },
    //删除记录
    deleteRecord(data){
        return request.put(`${moduleUrl}/deleteRecord`, data);
    },
    //获取记录详情
    getRecordDetails(data){
        return request.get(`${moduleUrl}/getRecordDetails`, data);
    }
};

export default record;
